import request from '@/utils/request'

// 查询关键指标详情字段列表
export function listHomeIndicatorsField(query) {
  return request({
    url: '/field/homeIndicatorsField/list',
    method: 'get',
    params: query
  })
}

// 查询关键指标详情字段详细
export function getHomeIndicatorsField(id) {
  return request({
    url: '/field/homeIndicatorsField/' + id,
    method: 'get'
  })
}

// 保存关键指标详情字段
export function saveHomeIndicatorsField(data) {
  return request({
    url: '/field/homeIndicatorsField/save',
    method: 'post',
    data: data
  })
}

// 删除关键指标详情字段
export function delHomeIndicatorsField(id) {
  return request({
    url: '/field/homeIndicatorsField/' + id,
    method: 'delete'
  })
}

// 导出关键指标详情字段
export function exportHomeIndicatorsField(query) {
  return request({
    url: '/field/homeIndicatorsField/export',
    method: 'get',
    params: query
  })
}
// 执行查询详情的SQL
// export function executeSQL(sql) {
//   return request({
//     url: '/field/homeIndicatorsField/executeSQL',
//     method: 'get',
//     params: { 'sql': sql }
//   })
// }
